package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 班组管理表
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_class")
@ApiModel(value="Class对象", description="班组管理表")
public class Class extends Model<Class> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "班组标识")
    @TableId(value = "classID", type = IdType.AUTO)
    private Integer classID;

    @ApiModelProperty(value = "医院标识")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty(value = "班组名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "医生标识")
    @TableField("doctorID")
    private Integer doctorID;

    @ApiModelProperty(value = "护士标识")
    @TableField("nurseID")
    private Integer nurseID;

    @ApiModelProperty(value = "排班信息（1,2..7  周一到周日）")
    @TableField("weekID")
    private String weekID;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "出车状态（0 未使用 1 使用中）")
    @TableField("carStatus")
    private Integer carStatus;

    @ApiModelProperty(value = "状态（0有效，1无效）")
    @TableField("status")
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.classID;
    }

}
